import request, {Reponse} from '../request';
import host from '../host';

let api: Reponse = request({
  getAppList: {
    url: `${host['ai-mc']}/v1/api-server/application`,
    method: 'get'
  },
  createApp: {
    url: `${host['ai-mc']}/v1/api-server/application`,
    method: 'post'
  },
  updateApp: {
    url: `${host['ai-mc']}/v1/api-server/application`,
    method: 'put'
  },
  deleteAppById: {
    url: `${host['ai-mc']}/v1/api-server/application/{id}`,
    method: 'delete'
  },
  visitorApp: {
    url: `${host['ai-mc']}/v1/api-server/application/visitor`,
    method: 'post'
  },
})

export default api;
